package com.boruiimage.demo.service;

import com.boruiimage.demo.doMain.Result;
import com.boruiimage.demo.doMain.memberuser;
import com.boruiimage.demo.mapperDao.chackPerson;
import com.boruiimage.demo.repository.checkPersonDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class checkPersonDaoImpl implements checkPersonDao {
    @Autowired
    chackPerson cp;
    @Override
    public Result selectByuserName(String userName) {
        Result rs=new Result();
        memberuser mb=cp.mb(userName);
        if(mb!=null){
            rs.setCode(1);
        }else {
            rs.setCode(0);
        }
        return rs;
    }
}
